package com.rules.drools.convert;

import com.rules.drools.entity.ActionParamInfoEntity;
import com.rules.drools.vo.req.ActionParamReqVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ActionParamConvert {
    ActionParamConvert INSTANCE = Mappers.getMapper(ActionParamConvert.class);

    ActionParamInfoEntity voToEntity(ActionParamReqVo vo);

    ActionParamReqVo entityToVo(ActionParamInfoEntity entity);

    List<ActionParamReqVo> entityToVo(List<ActionParamInfoEntity> entitys);
}
